.class public Lrexsee/core/application/RexseeInterfaceManager;
.super Ljava/lang/Object;
.source "RexseeInterfaceManager.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "InterfaceManager"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 0
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 24
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 25
    iput-object p1, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    .line 26
    return-void
.end method


# virtual methods
.method public create(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .param p1, "interfaceName"    # Ljava/lang/String;
    .param p2, "shortcut"    # Ljava/lang/String;

    .prologue
    .line 54
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0, p1, p2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->create(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public createFromParent(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .param p1, "interfaceName"    # Ljava/lang/String;
    .param p2, "shortcut"    # Ljava/lang/String;

    .prologue
    .line 58
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0, p1, p2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->createFromParent(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public createShortcutFromParent(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .param p1, "interfaceName"    # Ljava/lang/String;
    .param p2, "shortcut"    # Ljava/lang/String;

    .prologue
    .line 61
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0, p1, p2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->createShortcutFromParent(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public exists(Ljava/lang/String;)Z
    .locals 1
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    .line 36
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->contains(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public get()Ljava/lang/String;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getCreations()Ljava/lang/String;
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->getCreations()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 15
    new-instance v0, Lrexsee/core/application/RexseeInterfaceManager;

    invoke-direct {v0, p1}, Lrexsee/core/application/RexseeInterfaceManager;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "InterfaceManager"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 19
    new-instance v0, Lrexsee/core/application/RexseeInterfaceManager;

    invoke-direct {v0, p1}, Lrexsee/core/application/RexseeInterfaceManager;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public isInherit(Ljava/lang/String;)Z
    .locals 1
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    .line 39
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->isInherit(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public remove(Ljava/lang/String;)V
    .locals 1
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    .line 50
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->remove(Ljava/lang/String;)V

    .line 51
    return-void
.end method

.method public size()I
    .locals 1

    .prologue
    .line 30
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->size()I

    move-result v0

    return v0
.end method

.method public sizeOfCreations()I
    .locals 1

    .prologue
    .line 42
    iget-object v0, p0, Lrexsee/core/application/RexseeInterfaceManager;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->sizeOfCreations()I

    move-result v0

    return v0
.end method
